package com.zhiche.lisa.oms.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单下发
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
@TableName("lisa_order_assign")
public class OrderAssign extends Model<OrderAssign> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 订单编号
     */
	@TableField("order_code")
	private String orderCode;
    /**
     * 订单货物编号
     */
	@TableField("order_item_code")
	private Long orderItemCode;
    /**
     * 订单下发时间
     */
	@TableField("gmt_assign")
	private Date gmtAssign;
    /**
     * 下游系统接收订单日志
     */
	@TableField("assign_log")
	private String assignLog;
    /**
     * 委托单号（下游系统回写单号）
     */
	@TableField("consign_code")
	private String consignCode;
    /**
     * 委托单生成时间（下游系统回写单号时间）
     */
	@TableField("gmt_consign")
	private Date gmtConsign;

	/**
	 * 租户ID
	 */
	@TableField("tenant_id")
	private Long tenantId;

	@TableField("is_delete")
	@TableLogic
	private Integer isDelete;

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public Long getOrderItemCode() {
		return orderItemCode;
	}

	public void setOrderItemCode(Long orderItemCode) {
		this.orderItemCode = orderItemCode;
	}

	public Date getGmtAssign() {
		return gmtAssign;
	}

	public void setGmtAssign(Date gmtAssign) {
		this.gmtAssign = gmtAssign;
	}

	public String getAssignLog() {
		return assignLog;
	}

	public void setAssignLog(String assignLog) {
		this.assignLog = assignLog;
	}

	public String getConsignCode() {
		return consignCode;
	}

	public void setConsignCode(String consignCode) {
		this.consignCode = consignCode;
	}

	public Date getGmtConsign() {
		return gmtConsign;
	}

	public void setGmtConsign(Date gmtConsign) {
		this.gmtConsign = gmtConsign;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "OrderAssign{" +
			", id=" + id +
			", orderCode=" + orderCode +
			", orderItemCode=" + orderItemCode +
			", gmtAssign=" + gmtAssign +
			", assignLog=" + assignLog +
			", consignCode=" + consignCode +
			", gmtConsign=" + gmtConsign +
			"}";
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}
}
